package com.hospital.common.core.module.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author lvyao
 * @description 患者类
 * @date 2020/7/1
 */
@Data
@TableName("pat_master_index")
public class PatientInfo {
    @TableId
    private String patientId;
    private String inpNo;
    private String name;
    private String namePhonetic;
    private String sex;
    @JSONField(format = "yyyy-MM-dd")
    private Date dateOfBirth;
    private String birthPlace;
    private String citizenship = "CN";
    private String nation = "汉族";
    private String idNo;
    private String identity = "一般人员";
    private String unitInContract;
    private String chargeType = "自费";
    private String mailingAddress;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date lastVisitDate = new Date();
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createDate = new Date();
    private String operator = "0000";
    private String vipIndicator = "0";
    private String cardStatus = "5";
    private String healthCardId;
    private String qrCodeText;
    private String pHid;
    private String adminExt;
    private String virtualCardNum;
    private String rundcode;
    private String cardId;
    private String phoneNumberBusiness;
    private String state;
    private String city;
    private String district;
    private String address;
    private String zipCode;
    private String phoneNumberHome;

    @TableField(exist = false)
    private String nationCode;
    @TableField(exist = false)
    private String bitthPlace;
    @TableField(exist = false)
    private String countryName;
    private String relationship;
    @TableField(exist = false)
    private String relationshipName;
}
